package com.tca.spring.framework.learning.ioc.config;

import com.tca.spring.framework.learning.ioc.beans.Student;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhoua
 * @Date 2021/5/9
 */
@Configuration
@Slf4j
public class MainConfig {

    @Bean(initMethod = "initMethod")
    public Student student() {
        log.info("MainConfig的student()方法被执行了");
        return new Student();
    }


   /* @Bean
    public BeanFactoryPostProcessor customBeanFactoryPostProcessor() {
        return new CustomBeanFactoryPostProcessor();
    }

    @Bean
    public BeanPostProcessor customBeanPostProcessor() {
        return new CustomBeanPostProcessor();
    }

*/
}
